This chapter describes how to send files to, and receive files from, other computers using the File Transfer Protocol (FTP).
ツ The File Transfer Protocol (FTP) is a high-level protocol that
runs over TCP/IP and allows you to copy files to or from
other computers on any TCP/IP network.
FTP works on a client/server basis to either retrieve files from a host computer (the server) to your computer (the client), or to provide an environment where users can retrieve files from your Macintosh (the server) for use on their computers (the clients).
ツ The FTP client allows your computer to act as an online
information client, downloading files from an FTP server to
your own computer, or uploading files from your computer
to an FTP server.
ツ The FTP server allows you to set up your computer so that
FTP clients can download files from it, or upload files to it.
4.1 Understanding Anonymous FTP
Anonymous FTP provides an efficient method of transferring files between computers without requiring a specific user account on the FTP server.
To use anonymous FTP:
1. Press Option and choose FTP窶ヲ from the Services menu.
竏 The Expanded Connect Open an FTP session dialog is
displayed with anonymous as your username and your email
address as the password.
2. Enter the name of the host to connect to in the Hostname field.
3. Click Connect. (Or click Cancel to close the dialog without
establishing an FTP session.)
竏 You are connected to the anonymous FTP server you
selected.
ツ If you are prompted for your username and password after
clicking Connect in the Expanded Connect dialog, you may
be temporarily unable to connect to the desired site, or the
site may not be an anonymous FTP server.
4.2 Using the FTP Client
This section covers how to establish an FTP session, and how to download and upload files using FTP.
4.2.1 Establishing an FTP Session
To establish an FTP session:
1. Choose FTP窶ヲ from the Services menu.
竏 The Open an FTP session dialog is displayed.
2. Enter an FTP session name to connect to the indicated host
using the pre-configured FTP settings, a fully- or
partially-qualified host name, IP address, or the name of a host
configuration.
OR
Choose a session from the FTP Session pop-up menu.
ツ If you click More Options, an expanded connection dialog is
displayed, allowing you to enter the parameters for a
particular FTP session.
3. Click Connect. (Or click Cancel to close the dialog without
connecting to an FTP session.)
竏 You are connected to the FTP server you selected, and the
FTP window (Figure 4.1) is displayed.
ツ
Figure 4.1 The FTP Window
4.2.2 Using the FTP Window
The FTP window (Figure 4.1) consists of two file lists except when Two File Lists is not selected in the FTP menu, or when it is not defined in the Miscellaneous subpanel of the FTP Client configuration panel. The list on the left displays files on your Macintosh, and the list on the right displays files on the remote host. The names of the client and server computers are indicated directly above their respective file lists.
At the top center of the FTP window, there are several file transfer modes. Files are retrieved or delivered in the mode you select.
窶「 Click Auto to transfer files in the appropriate mode based on the
filename. To indicate its guesses, the FTP client displays an icon
in front of the filenames in the file list.
窶「 Click ASCII to transfer files in plain text format.
窶「 Click Image to transfer files in binary mode.
窶「 Click MacBinary if you want TCP/Connect II to use the
Macintosh-specific binary format to transfer files.
The FTP window has several buttons that allow you to manipulate files and directories. They are listed below.
Copy
Copies the selected file or files.
Remove
Deletes the selected file or files.
Rename窶ヲ
Renames the selected file or files.
Options窶ヲ
Displays the FTP Client Options dialog, which allows you to change certain options that you set in the FTP Client configuration panel.
Desktop
Changes the local directory to the desktop.
Eject
Ejects removable medium from your computer if it is the selected directory or parent.
Set Directory窶ヲ
Displays a dialog where you can enter an appropriate directory specifier for the operating system of the server. Full or partial directory specifiers may be accepted depending upon the server.
4.2.3 Downloading or Uploading a File
To copy a file from a remote server to your Macintosh, or from your Macintosh to a remote server:
1. Open the FTP window.
2. Select the file or files to download or upload.
3. Click Copy.
竏 Apple窶冱 Standard Save dialog is displayed.
ツ The Save dialog is displayed only if Prompt for file names is
selected in the Miscellaneous subpanel of the FTP Client
configuration panel or in the FTP Client Options dialog. If
you have not selected Prompt for file names, the selected file
is saved in the current local directory using its remote
filename.
ツ It is suggested that you turn off Prompt for file names if you
are copying more than one file at a time.
4. Select a folder to save the downloaded or uploaded file to.
5. Click Save.
竏 The file is saved to the designated folder.
4.2.4 Using the FTP Log Window
Use the FTP Log window to view status information of FTP logins and transfers.